package edu.vanderbilt.multicast.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.MediaController;
import android.widget.VideoView;

public class VideoViewer extends Activity {
	@Override
	public void onCreate (Bundle savedInstanceState) {
		super.onCreate (savedInstanceState);
		Intent i = getIntent ();
		Bundle extrainfo = i.getExtras ();
		VideoView vv = new VideoView (getApplicationContext ());
		setContentView (vv);
		vv.setVideoPath (extrainfo.getString ("videofilename"));
		vv.setMediaController (new MediaController (this));
		vv.requestFocus ();
		vv.start ();
	}
}